package fr.gestionimmoejb.test;

import java.util.Properties;

import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;

import junit.framework.TestCase;

public class BaseTestCase extends TestCase{
	
	protected static Context ctx;
	
	static {
		try {
			Properties properties = new Properties();
			properties.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
			properties.put("java.naming.factory.url.pkgs","=org.jboss.naming:org.jnp.interfaces");
			properties.put("java.naming.provider.url","localhost:1099");
			ctx = new InitialContext(properties);
		}catch (NamingException nameException){
			nameException.printStackTrace();
		}

	}

}
